package com.lanju.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entity
@Table(name = "lj_transfer_list_item")
public class HouseTransferListItem implements Serializable {

	private static final long serialVersionUID = -1600219019264329257L;

	private String itemId;
	private String transferId;
	private Integer num;
	private String name;
	private String count;
	private String remark;
	
	private HouseTransferList houseTransferList;
	
	@Id
	@Column(name="itemId",unique=true,nullable=false)
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getTransferId() {
		return transferId;
	}
	public void setTransferId(String transferId) {
		this.transferId = transferId;
	}

	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	@JsonIgnore
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="transferId", insertable=false, updatable=false, nullable=false)
	public HouseTransferList getHouseTransferList() {
		return houseTransferList;
	}
	public void setHouseTransferList(HouseTransferList houseTransferList) {
		this.houseTransferList = houseTransferList;
	}


}
